package starComponent.utils;

import java.awt.Shape;
import java.awt.Stroke;

/**
 * @author Charles Perin
 * 21 avr. 2011
 * LIMSI - INRIA Rennes
 * charles.perin@free.fr
 */
public class CompositeStroke implements Stroke {
	private Stroke stroke1, stroke2;

	public CompositeStroke( Stroke stroke1, Stroke stroke2 ) {
		this.stroke1 = stroke1;
		this.stroke2 = stroke2;
	}

	@Override
	public Shape createStrokedShape(Shape shape) {
		return stroke2.createStrokedShape( stroke1.createStrokedShape( shape ) );
	}


}

